package com.meichis.yndms.adapter;

import android.content.Context;

import com.meichis.mcsappframework.adapter.recyclerview.MultiItemTypeAdapter;
import com.meichis.yndms.adapter.RecycleViewItemType.FillMode_CheckBoxNew;
import com.meichis.yndms.adapter.RecycleViewItemType.FillMode_CityNew;
import com.meichis.yndms.adapter.RecycleViewItemType.FillMode_EditTextNew;
import com.meichis.yndms.adapter.RecycleViewItemType.FillMode_PictureNew;
import com.meichis.yndms.adapter.RecycleViewItemType.FillMode_RadioButtonNew;
import com.meichis.yndms.adapter.RecycleViewItemType.FillMode_SwitchNew;
import com.meichis.yndms.adapter.RecycleViewItemType.FillMode_TDPNew;
import com.meichis.yndms.adapter.RecycleViewItemType.FillMode_TextViewNew;
import com.meichis.yndms.model.InspectTemplate_Item;

import java.util.List;

public class FillModeRcAdapterNew extends MultiItemTypeAdapter<InspectTemplate_Item> {
    public final static int REQUEST_TAKEPHOTO = 1;

    public FillModeRcAdapterNew(Context context, List<InspectTemplate_Item> datas) {
        super(context, datas);
        addItemViewDelegate(new FillMode_TextViewNew(datas));
        addItemViewDelegate(new FillMode_EditTextNew(datas));
        addItemViewDelegate(new FillMode_RadioButtonNew(datas));
        addItemViewDelegate(new FillMode_CheckBoxNew(datas));
        addItemViewDelegate(new FillMode_SwitchNew(datas));
        addItemViewDelegate(new FillMode_PictureNew( datas));
        addItemViewDelegate(new FillMode_CityNew(context, datas));
        //addItemViewDelegate(new FillMode_Product(context,datas));
        addItemViewDelegate(new FillMode_TDPNew(context, datas));
    }
}
